package com.fernandomartines.dbcheck.graph.element;

import java.io.Serializable;

public class ModelGraphAssociationPoint implements Serializable {

    private String id;
    private String roleName;
    private ModelGraphEntity entity;
    private int min;
    private int max;

    // constructors

    public ModelGraphAssociationPoint() {
        this.id = "";
        this.roleName = "";
        this.entity = null;
        this.min = 0;
        this.max = 0;
    }

    public ModelGraphAssociationPoint(String id, String roleName,
            int min, int max) {
        this.id = id;
        this.roleName = roleName;
        this.min = min;
        this.max = max;
    }

    public ModelGraphAssociationPoint(String id, String roleName,
            ModelGraphEntity entity, int min, int max) {
        this.id = id;
        this.roleName = roleName;
        this.entity = entity;
        this.min = min;
        this.max = max;
    }

    // getters and setters

    public ModelGraphEntity getEntity() {
        return entity;
    }

    public void setEntity(ModelGraphEntity entity) {
        this.entity = entity;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

}
